package com.san.school.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.san.school.entity.StuCourseExample;
import java.util.List;
import com.san.school.mapper.StuCourseMapper;
import com.san.school.entity.StuCourse;
import com.san.school.service.StuCourseService;
/**
 * ClassName:StuCourseServiceImpl
 * PackageName:com.san.service.impl
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/6 17:07
 * 
 */
 
 
@Service
public class StuCourseServiceImpl implements StuCourseService{

    @Resource
    private StuCourseMapper stuCourseMapper;

    @Override
    public long countByExample(StuCourseExample example) {
        return stuCourseMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(StuCourseExample example) {
        return stuCourseMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer sid,Integer courseid,Integer tid) {
        return stuCourseMapper.deleteByPrimaryKey(sid,courseid,tid);
    }

    @Override
    public int insert(StuCourse record) {
        return stuCourseMapper.insert(record);
    }

    @Override
    public int insertSelective(StuCourse record) {
        return stuCourseMapper.insertSelective(record);
    }

    @Override
    public List<StuCourse> selectByExample(StuCourseExample example) {
        return stuCourseMapper.selectByExample(example);
    }

    @Override
    public StuCourse selectByPrimaryKey(Integer sid,Integer courseid,Integer tid) {
        return stuCourseMapper.selectByPrimaryKey(sid,courseid,tid);
    }

    @Override
    public int updateByExampleSelective(StuCourse record,StuCourseExample example) {
        return stuCourseMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(StuCourse record,StuCourseExample example) {
        return stuCourseMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(StuCourse record) {
        return stuCourseMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(StuCourse record) {
        return stuCourseMapper.updateByPrimaryKey(record);
    }

}
